﻿using System.Collections.Generic;
using OblivionLevelingHelper.Skills;

namespace OblivionLevelingHelper.Classes.Specializations
{
    public abstract class Specialization
    {
        private readonly Dictionary<SkillTypes, int> _skillModifiers;
        public string Name = "Default";

        protected Specialization()
        {
            _skillModifiers = new Dictionary<SkillTypes, int>();
        }

        protected void AddSkillModifier(SkillTypes skillType, int value)
        {
            _skillModifiers.Add(skillType, value);
        }

        public int GetSkillModifier(SkillTypes skillType)
        {
            return _skillModifiers.ContainsKey(skillType) ? _skillModifiers[skillType] : 0;
        }
    }
}
